package cn.lyq.card.ui.address

import android.view.View
import cn.lyq.card.R
import cn.lyq.card.base.BaseDialogFg
import cn.lyq.card.global.BusTag
import cn.lyq.card.utils.setClick
import com.blankj.utilcode.util.BusUtils
import kotlinx.android.synthetic.main.dialog_delete_address.*


class AddressConfirmDelFg : BaseDialogFg() {
    override val rootId: Int
        get() = R.layout.dialog_delete_address

    override fun initListener(view: View) {
        super.initListener(view)
        tvCancel.setClick {
            dismiss()
        }
        tvConfirm.setClick {
            BusUtils.post(BusTag.ADDRESS_DEL)
            dismiss()
        }
    }
}